$(function(){
    // table
    layui.use('table', function(){
        var table = layui.table;
        //第一个实例
        table.render({
            elem: '#log_list',
            url: pbsBasePath +'getLogListJson?jobId='+jobId ,//数据接口
            cols: [[ //表头
                {field: 'ID', hide:true},
                {field: 'JOB_NAME', title: '任务名称',width:300},
                {field: 'EXCUTE_TIME', title: '执行次数',width:90},
                {field: 'JOB_STATUS', title: '执行状态',width:60},
                {field: 'EXCEP_MSG', title: '异常信息',width:900,event:true},
            ]],
            id:'log_list_id',
            even:true,
            height:'full-76',
            page:false,
            done:function(){
                $('th').each(function(index,element){
                    $(element).attr('title',$(element).text());
                });
                $('td').each(function(index,element){
                    $(element).attr('title',$(element).text());
                });
            }
        });
    })
})
